<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Fawri | Start</title>
<!-- STYLES -->
<link rel="stylesheet" type="text/css" href="css/style.css" />
<?php 
function parsePageSignedRequest() {
    if (isset($_REQUEST['signed_request'])) {
      $encoded_sig = null;
      $payload = null;
      list($encoded_sig, $payload) = explode('.', $_REQUEST['signed_request'], 2);
      $sig = base64_decode(strtr($encoded_sig, '-_', '+/'));
      $data = json_decode(base64_decode(strtr($payload, '-_', '+/'), true));
      return $data;
    }
    return false;
  }
  if($signed_request = parsePageSignedRequest()) {
    if($signed_request->page->liked) {?>
		<script> self.location.href='nav.php'</script>
		<?php
		} else {
      
    }
  }
?>
</head>

<body>
    <!-- APP WARPER -->
    <div class="warper">
    	<!-- content left side -->
    	<div class="left-side">
        	<div class="content">
            	<!-- Main Header -->
                
                <span class="like"></span>
                <h2>
                دوس لايك <br />
				عشان تدخل المسابقة
				</h2>
                
                <!--  Box -->
                
            </div>
            <a href="#" class="back"></a>
        </div>
        <div class="right-side">
        	<a href="#" class="logo">
            	
            </a>
            <span class="side-prize"></span>
        </div>
    </div>
</body>
</html>
